package cn.neusoft.mapper;

import cn.neusoft.domain.Menu;
import cn.neusoft.domain.Operator;
import cn.neusoft.query.BaseQuery;

import java.util.List;

public interface OperatorMapper {

    int add(Operator operator);

    int deleteById(String operator_id);

    int update(Operator operator);

    Operator findById(String operator_id);

    Operator findByAccount(String operator_account);

    Operator findByTel(String tel);

    List<Operator> findAll();

    List<Operator> findByCondition(BaseQuery baseQuery);

    Operator checkAccountUnique(String operator_account);

    Operator checkTelUnique(String tel);

    List<Menu> getMenuListByRoleId(String role_id);

    String getRoleKeyByAccount(String operator_account);
}